<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 超链接的颜色和标题的字体大小无法继承的原因是：它们都有自己默认的颜色和字号，无法继承 */
        div {
            color: red;
            font-size: 12px;
        }
        a {
            color: red;
        }
    </style>
</head>
<body>
    
    <div>
        <a href="#">超链接</a>
        <h1>一级标题</h1>
    </div>
</body>
</html>